<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ name }}</div>
    <div class="dashboard-text">
      <!-- <Test :testp="num" @test22="test" /> -->
      f
      {{ msg }}
      <div class="box">
        <!-- <SonA />
        <SonB /> -->
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
// import SonA from './components/sonA.vue'
// import SonB from './components/sonB.vue'

export default {
  name: 'Dashboard',
  components: {
    // SonA,
    // SonB
  },
  data() {
    return {
      num: '123123',
      msg: ''
    }
  },
  computed: {
    ...mapGetters(['name']),
    ...mapGetters(['name'])
  },
  created() {
    this.test()
  },
  methods: {
    test(msg) {
      this.msg = msg
    }
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
.box {
  display: flex;
}
</style>
